-- GENERATED SPELL FOR [Grocklar] --


function spell0_32422(pUnit, Event) --@Stone Fist,Self--
pUnit:FullCastSpellOnTarget(49676,pUnit)
pUnit:RegisterEvent('Sorts_32422', 535, 1)
end

function spell1_32422(pUnit, Event) --@Stone Stomp,n/a--
pUnit:FullCastSpellOnTarget(49675,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32422', 2000, 1)
end

function Sorts_32422(pUnit, Event)
local choix_sorts_32422 = math.random(0, 1)
if choix_sorts_32422 == 0 then
pUnit:RegisterEvent('spell0_32422', 1, 1)
end
if choix_sorts_32422 == 1 then
pUnit:RegisterEvent('spell1_32422', 1, 1)
end
end

function mob32422_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32422', math.random(1500, 3000), 1)
end

function mob32422_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32422_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32422_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32422, 1, 'mob32422_Action')
RegisterUnitEvent(32422, 2, 'mob32422_Leave')
RegisterUnitEvent(32422, 3, 'mob32422_Kill')
RegisterUnitEvent(32422, 4, 'mob32422_Die')
